package com.zmc.admin.infrastructure.bean.vo.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Author：zmc
 * @Date：2025/4/2 12:16
 */
@Data
public class SysUserProfileVo implements Serializable {

    @NotBlank(message = "旧密码不能为空")
    @Size(max = 20, min = 5, message = "旧密码长度必须在5到20个字符之间")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @Size(max = 20, min = 5, message = "新密码长度必须在5到20个字符之间")
    private String newPassword;
}
